
Version:=2.6.23
ModuleName:=iproute2

Objcet:=$(ModuleName).tgz
ObjectDir:=$(ModuleName)-$(Version)
ObjcetSource:=$(ModuleName)-$(Version).tar.bz2

DependFiles:=
InstaLibDir:=usr/local/lib

InstallDir:=usr
ManDir:=/tmp


.PHONY: all clean dist_clean

all:$(Objcet)

$(Objcet):$(ObjcetSource) 
	tar -xvf $(ObjcetSource)
	cd $(ObjectDir);./configure 
	$(MAKE) -C $(ObjectDir) install DESTDIR=`pwd`/
	rm -rf usr/etc usr/share &&  cp -rf rt_tables etc/iproute2 
	tar -czf $(Objcet) $(InstallDir) etc

clean:
	rm -rf $(Objcet) usr  etc

dist_clean:clean
	rm -rf $(ObjectDir) $(ObjcetSource) *.tar.bz
	
include ../Makefile.Res
